package com.example.taximeter.bean;

import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.validator.constraints.Length;


import java.util.Date;

/**
 * 日志
 */
public class UserLog {

//    @Valid
//    @NotNull(message = "日志id格式错误", groups =  GroupUpdate.class)
    private Integer id;//日志id--主键

//    @NotNull(message = "操作方式格式错误", groups = GroupCreate.class)
    private Integer logtype;//操作方式

    @Length(min = 1, max = 20, message = "用户名称格式错误", groups = GroupCreate.class)
    private String username;//用户名称

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date stime;//操作时间

    @Length(min = 1, max = 2000, message = "日志描述格式错误", groups = GroupCreate.class)
    private String logdescription;//操作内容

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLogtype() {
        return logtype;
    }

    public void setLogtype(Integer logtype) {
        this.logtype = logtype;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getStime() {
        return stime;
    }

    public void setStime(Date stime) {
        this.stime = stime;
    }

    public String getLogdescription() {
        return logdescription;
    }

    public void setLogdescription(String logdescription) {
        this.logdescription = logdescription;
    }
}
